import request from '@/utils/request'
export const RegisterApi = (data) => {
  return request.post('user/register', data)
}
export const LoginApi = (data) => {
  return request({
    url: 'user/login',
    method: 'post',
    data
  })
}
export const getUserApi = () => {
  return request({
    url: 'user/currentUser'
  })
}
export const getTuiChuApi = () => {
  return request({
    url: 'user/logout'
  })
}
